﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HCBC2009
{

    /// <summary>
    /// Summary description for Config
    /// </summary>
    public class Config
    {
        
        public static string GetSetting(string settingName)
        {
            try
            {
                string customSettingName = String.Format("{0}.{1}", settingName, Environment.MachineName);

                if (ConfigurationManager.AppSettings[customSettingName] != null)
                    return ConfigurationManager.AppSettings[customSettingName];
            }
            catch (Exception) { }

            return ConfigurationManager.AppSettings[settingName];
        }

        public static string HTTPURL
        {
            get
            {
                return GetSetting("HCBC_HTTPURL");
            }
        }


    }

}